﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Square:Shape
    {
        private int sideLen;

        public override void GetArea()
        {
            Console.WriteLine("请输入正方形类的半径:");
            sideLen = int.Parse(Console.ReadLine());
            Console.WriteLine("正方形类的面积为:{0}",(this.sideLen * this.sideLen));
        }
        public int SideLen 
        {
            get { return this.sideLen; }
            set { this.sideLen = value; }
        }
    }
}
